+Thu Feb 26 17:29:04 2004 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
+ GDK_FILTER_CONTINUE for unhandled message types.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
+ multiple filters for the same event type with the standard
+ "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
+
+ * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
+ Append to the filter list not prepend, since order now matters.
+
+ * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter):
+ Append to the filter list not prepend, since order now matters.
+
Thu Feb 26 23:39:07 2004 Matthias Clasen <maclas@gmx.de>
Fixes for #135333, analysed by Damon Chaplin:
+Thu Feb 26 17:29:04 2004 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
+ GDK_FILTER_CONTINUE for unhandled message types.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
+ multiple filters for the same event type with the standard
+ "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
+
+ * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
+ Append to the filter list not prepend, since order now matters.
+
+ * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter):
+ Append to the filter list not prepend, since order now matters.
+
Thu Feb 26 23:39:07 2004 Matthias Clasen <maclas@gmx.de>
Fixes for #135333, analysed by Damon Chaplin:
+Thu Feb 26 17:29:04 2004 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
+ GDK_FILTER_CONTINUE for unhandled message types.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
+ multiple filters for the same event type with the standard
+ "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
+
+ * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
+ Append to the filter list not prepend, since order now matters.
+
+ * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter):
+ Append to the filter list not prepend, since order now matters.
+
Thu Feb 26 23:39:07 2004 Matthias Clasen <maclas@gmx.de>
Fixes for #135333, analysed by Damon Chaplin:
+Thu Feb 26 17:29:04 2004 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
+ GDK_FILTER_CONTINUE for unhandled message types.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
+ multiple filters for the same event type with the standard
+ "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
+
+ * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
+ Append to the filter list not prepend, since order now matters.
+
+ * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter):
+ Append to the filter list not prepend, since order now matters.
+
Thu Feb 26 23:39:07 2004 Matthias Clasen <maclas@gmx.de>
Fixes for #135333, analysed by Damon Chaplin:
+Thu Feb 26 17:29:04 2004 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Return
+ GDK_FILTER_CONTINUE for unhandled message types.
+
+ * gdk/x11/gdkevents-x11.c (gdk_event_translate): Allow
+ multiple filters for the same event type with the standard
+ "GDK_FILTER_CONTINUE == pretend I wasn't here" semantics.
+
+ * gdk/x11/gdkevents-x11.c (gdk_display_add_client_message_filter):
+ Append to the filter list not prepend, since order now matters.
+
+ * gdk/win32/gdkevents-win32.c (gdk_add_client_message_filter):
+ Append to the filter list not prepend, since order now matters.
+
Thu Feb 26 23:39:07 2004 Matthias Clasen <maclas@gmx.de>
Fixes for #135333, analysed by Damon Chaplin:
filter->function = func;
filter->data = data;
- client_filters = g_list_prepend (client_filters, filter);
+ client_filters = g_list_append (client_filters, filter);
}
static void
filter->data = data;
GDK_DISPLAY_X11(display)->client_filters =
- g_list_prepend (GDK_DISPLAY_X11 (display)->client_filters,
- filter);
+ g_list_append (GDK_DISPLAY_X11 (display)->client_filters,
+ filter);
}
/**
while (tmp_list)
{
GdkClientFilter *filter = tmp_list->data;
+ tmp_list = tmp_list->next;
+
if (filter->type == message_type)
{
result = (*filter->function) (xevent, event, filter->data);
- break;
+ if (result != GDK_FILTER_CONTINUE)
+ break;
}
-
- tmp_list = tmp_list->next;
}
switch (result)
_gdk_x11_set_input_focus_safe (display, toplevel->focus_window,
RevertToParent,
xevent->xclient.data.l[1]);
+
+ return GDK_FILTER_REMOVE;
}
else if ((Atom) xevent->xclient.data.l[0] == gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_PING") &&
!_gdk_x11_display_is_root_window (display,
xev.xclient.window,
False,
SubstructureRedirectMask | SubstructureNotifyMask, &xev);
+
+ return GDK_FILTER_REMOVE;
}
- return GDK_FILTER_REMOVE;
+ return GDK_FILTER_CONTINUE;
}
void